Set CursorlineSet history=1700Set nocompatible "Remove nasty about VI consistency mode, avoid some bugs and limitations of previous versionsSet NuFileType plugin onFileType indent onSet AutoreadSet so=7Set WildmenuSet WILDIGNORE=*.O,*~,*.PYCSet
Sometimes when you write a program file, you often need to add some header comments, such as creator, creation date, version statement or function description, if you want to add a comment every time, it will be more troublesome, so you can create a
View processPS Top (Task Manager)Kill processKill PID (PID number requires its own input, can be viewed by the viewing process)Delete lock filesudo rm/var/lib/apt/lists/lockdeleting filessudo rm-r filename (-R down recursion, no matter how many
Upload the. vimrc file to the user's home directoryThe contents of the file are as follows:Autocmd bufnewfile *.py,*.cc,*.SH, *.java exec": Call Settitle ()"func settitle ()ifExpand"%:e") =='SH'Call Setline (1,"#!/bin/bash") Call Setline (2,"########
Use the Xhell to connect the server using the optimized Vim editor cannot appear option
Set nocompatibleSet history=100FileType onFileType plugin onFileType indent onSet AutoreadSet Mouse=aSyntax enableSet CursorlineHi cursorline guibg= #00ff00
Set TabStop=4set Numberset cul set CUC hi cursorcolumn ctermfg=3 ctermbg=2function insertpythoncomment () exe'Normal'.1.'G' Let Line= Getline ('.') ifLine =~'^#!. *$'|| Line =~'^#.*coding:.*$' returnendif normal O call Setline ('.','#!/usr/
Configuration knowledge such as Vim path is shown in table:
Related configuration Files
Function description
. viminfo
User's operation history using Vim
. VIMRC
Configuration file for
First try globals. Lua, Which is copied from lua1.0. Because lua1.0 has some doubts about the output of this program, execute it here.The source code is as follows:---------------------------$ DebugK, V = nextvar (k)While K doPrint (k)K, V = nextvar
How to print the bytecode:Modify the Code as follows to enable the macro function for printing bytecode.Y. Tab. c18 rows# Define listing 0Change# Define Listing 1Because the definition of printcode is called, a predeclaration is added:Make the
Complete VIM tips: file name completion and vim tips completion
Well, I 've been reading the "concise Python tutorial" These two days. The author suggested to write the file name and the interpreter of the call in the comments in front of the Code.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.